package com.example.chapter_1_17.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chapter_1_17.entity.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PersonMapper extends BaseMapper<Person> {
    @Select("SELECT * FROM person WHERE person_name LIKE '%三%'")
    List<Person> selectSan();//写了一个函数 直接实现了 这个函数
//工作完成
}
